import { HttpException, HttpStatus } from '@nestjs/common';

export class RuntimeException extends HttpException {
  constructor(message: string, code: number = 1, error?: object) {
    super({ message, code, ...error }, HttpStatus.OK);
  }
}
